package com.xintoucloud.springbootguide.service;

import java.util.List;

import com.xintoucloud.springbootguide.entity.Clazz;
import com.xintoucloud.springbootguide.repository.ClazzRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class ClazzService {
	@Autowired
	ClazzRepository clazzRepository;
	public List<Clazz> listClazz(){
		return clazzRepository.findAll();
	}
}
